import * as TYPES from '../Actions/actionTypes';

const initialState = {
	invoice: {}
};

let invoiceReducer = (state=initialState, action)=>{

	switch(action.type){
		case TYPES.INVOICE_GET:
			return {
				...state,
				invoice: action.invoice
			};
		default: 
			return state;
	}

}


export default invoiceReducer;